<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/white/common/common.jsp"%>
<%@include file="/white/common/taglibs.jsp"%>


<html>
<head>
<script type="text/javascript">
        function submitForm(){
            var searchForm=document.getElementById("searchForm");
            searchForm.submit();
        }
        

        
 
        
        function displayResult(){
            var result = "<s:property value='result'/>";
            if(result != null && result != ""){
                alert(result);
            }
        }    
               function excel(){
            var searchForm=document.getElementById("searchForm");
            searchForm.target="";
            searchForm.action='exportAction!exportExcel.action';          
            searchForm.submit();         
            }  
                           function csv(){
            var searchForm=document.getElementById("searchForm");
            searchForm.target="";
            searchForm.action='exportAction!exportCSV.action';          
            searchForm.submit();         
            } 
             function dbf(){
            var searchForm=document.getElementById("searchForm");
            searchForm.target="";
            searchForm.action='exportAction!exportDBF.action';          
            searchForm.submit();         
            } 
              function downloadexcel(){
   var searchForm=document.getElementById("searchForm");
            searchForm.target="";
            searchForm.action='exportAction!downloadexcel.action';         
            searchForm.submit();
            }  
                          function downloadcsv(){
   var searchForm=document.getElementById("searchForm");
            searchForm.target="";
            searchForm.action='exportAction!downloadcsv.action';         
            searchForm.submit();
            }  
                                      function downloadcsv(){
   var searchForm=document.getElementById("searchForm");
            searchForm.target="";
            searchForm.action='exportAction!downloadcsv.action';         
            searchForm.submit();
            } 
                                                  function downloaddbf(){
   var searchForm=document.getElementById("searchForm");
            searchForm.target="";
            searchForm.action='exportAction!downloaddbf.action';         
            searchForm.submit();
            } 
    </script>
</head>
<body onload="displayResult()">
	<s:form method="post" action="exportAction!exportExcel.action"
		theme="simple" id="searchForm">
		<div id="div_title">
			<h3>批量导出</h3>
			<div id="div_search">
				<table>
					<tr>
						<!-- 查询条件 -->
						<td width="80" align="right">城市代码:</td>
						<td><s:textfield name="query_cityCode" /></td>
<%-- 						<td width="80" align="right">城市名称:</td>
						<td><s:textfield name="query_cityName" /></td> --%>
						<td width="80" align="right">页码:</td>
						<td>
						<s:select id="pagenum" name="pagenum"style="width: 70px"
							list="#{'1':'1','2':'2','3':'3','4':'4','5':'5','6':'6','7':'7','8':'8','9':'9','10':'10'}"
							listKey="key" listValue="value" ></s:select>						
						</td>
						<td width="80" align="right">每页条数:</td>
						<td>
						<s:select id="num" name="num"style="width: 70px"
							list="#{'1000':'1000','2000':'2000','3000':'3000','4000':'4000','5000':'5000','6000':'6000','7000':'7000','8000':'8000','9000':'9000','10000':'10000'}"
							listKey="key" listValue="value" ></s:select>						
						</td>
						</tr>
						
				</table>
				<input type="button"  value="导出EXCEL" onClick="excel();disabled=true;"/>
				 <input type="button"  value="导出CSV" onClick="csv();disabled=true;"/>
				<input type="button"  value="导出DBF" onClick="dbf();disabled=true;"/>
			</div>
			
		</div>
		<%@include file="/white/common/message.jsp"%>

<input type="button"  value="下载EXCEL" onClick="downloadexcel();<s:property value="todownload"/>"/>
<input type="button"  value="下载CSV" onClick="downloadcsv();<s:property value="todownloadcsv"/>"/>
<input type="button" value="下载DBF" onClick="downloaddbf();<s:property value="todownloaddbf"/>"/>
	</s:form>
</body>
</html>
